package com.openspring.platform.service;

import java.util.List;
import java.util.Map;
import com.openspring.framework.service.GenericService;
import com.openspring.platform.model.Dictionary;

public interface DictionaryService extends GenericService<Dictionary, Long> {

	Map<String, Map<String, Dictionary>> findDictionarys();
	
	/**
	 * 根据字典类别ID查询字典项
	 * @param dictId
	 * @return
	 */
	List<Dictionary> findByDictId(Long dictId);
	
	/**
	 * 根据字典类别Code查询字典项
	 * @param dictId
	 * @return
	 */
	List<Dictionary> findByDictCode(String dictCode);
}
